package com.sneakxy.mybase4j.platform.repository;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sneakxy.mybase4j.base.repository.BaseRepository;
import com.sneakxy.mybase4j.platform.beans.Permission;

/**
 * 
 * @author 潜行的青衣
 * @see
 */
@Repository
public interface PermissionRepository extends BaseRepository<Permission, String> {

	public List<Permission> findAllByParentIdOrderBySort(String parent_id);
	
	public List<Permission> findAllByParentIdIsNullOrderBySort();
	
}
